import { lib, game, ui, get, ai, _status } from '../../noname.js'
import { config } from './myExtension/config.js'
import { content } from './myExtension/content.js'
import { precontent } from './myExtension/precontent.js'
import { help } from './myExtension/help.js'
import { swTool } from './main/swTool.js'
//孩子们，我阿米诺斯，一得阁拉米
const extensionInfo = await lib.init.promises.json(`${lib.assetURL}extension/云中守望/info.json`);
extensionInfo.intro = "版本：" + extensionInfo.version
swTool.comboObject(swTool, {
	extensionName: extensionInfo.name,
	extensionVersion: extensionInfo.version,
})
let extensionPackage = {
	name: extensionInfo.name,
	editable: false,
	content: content,
	precontent: precontent,
	config: config,
	help: help,
	package: { },
	files: { "character": [], "card": [], "skill": [], "audio": [] }
};
Object.keys(extensionInfo).filter(key => key != 'name').forEach(key => {
	extensionPackage.package[key] = extensionInfo[key]
});
export let type = 'extension';
export default extensionPackage;
